<%-- 
Document   : login_Cadastro
Created on : 28/11/2010, 10:10:56
Author     : Cleiviane
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" language="java"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/ebeformatacao.css" />
        <title>Acesso</title>
    </head>
    <body class="fundo">
        <f:view locale="#{idioma.atual}">

            <f:subview id="cabecalho">
                <jsp:include page="cabecalho.jsp" />
            </f:subview>

            <div align="center">

                <h:panelGrid columns="2">
                    <h:form id="acesso" >
                        <tr>
                            <td>
                                <h:commandLink action="#{controlUsuario.novoUsuario}" styleClass="hiperlink">
                                    <h:graphicImage value="../Imagens/#{idioma.atual}/cadastrese_singup.png"></h:graphicImage>
                                </h:commandLink>
                            </td>

                            <td>
                                <div class="login"
                                     <h:form id="frmLogin">
                                         <div class="textologin">
                                             <h:panelGrid columns="2" columnClasses=" columnGreen,columnGreen, columnGreen">
                                                 <!-- Guarda o usuario no bean usuarioAtual-->
                                                 <h:outputLabel for="usuario" value="#{msgs['index.login']}:" styleClass="labels" />
                                                 <h:inputText id="usuario" value="#{controlUsuario.usuario.cpf}" styleClass="imputText" required="false"/>
                                                 <!-- Guarda a senha na classe autenticaBean-->
                                                 <h:outputLabel for="senha" value="#{msgs['index.senha']}:" styleClass="labels" />
                                                 <h:inputText id="senha" value="#{controlUsuario.usuario.senha}" styleClass="imputText" required="false"/>
                                                 <!-- Value chama o metodo autenticacao-->
                                             </h:panelGrid>
                                             <h:commandButton action="#{controlUsuario.autenticar}" value="#{msgs['index.OK']}" styleClass="buttons"/>
                                             <h:messages styleClass="errorMessage"/>
                                         </div>
                                     </h:form>
                                </div>
                            </td>
                        </tr>
                        <h:messages styleClass="errorMessage"/>
                    </h:form>
                </h:panelGrid>
            </div>

            <f:subview id="rodape">
                <jsp:include page="rodape.jsp" />
            </f:subview>
        </f:view>
    </body>
</html>
